<?php

namespace app\common\model;
class User extends Base
{
    public function groups(){
        return $this->hasMany('Access','user_id','id');
    }


    public function logs(){
        return $this->hasMany('Log','user_id','id');
    }
}